A = open("C:/Users/Lenovo/Desktop/word.txt","r",encoding="UTF-8")
with open("C:/Users/Lenovo/Desktop/word.txt","r",encoding="UTF-8") as A:
    count = 0
    for x in A:
        c = x.strip()
        d = c.split(" ")
        for y in d:
            if y == "itheima":
                count += 1
        print(x)
print(count)